<html>

	<head>
		<meta charset="UTF-8">
		<title>Table</title>
		<link rel="stylesheet" href="__STATIC__/plugins/layui/css/layui.css" media="all" />
		<link rel="stylesheet" href="__CSS__/global.css" media="all">
		<link rel="stylesheet" href="__STATIC__/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="__CSS__/table.css" />
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.config.js"></script>
	    <script type="text/javascript" charset="utf-8" src="__JS__/ueditor.all.min.js"> </script>
        <script type="text/javascript" charset="utf-8" src="__JS__/lang/zh-cn/zh-cn.js"></script>



	</head>
 	<body>
 		<p>所属股东:<span id="partner">{$partner.nickname}</span> 余额: <span id="partner_money">{$partner.credit2}</span></p>
 		<br>
 		<p>所属团队:<span id="team">{$team.nickname}</span> 余额: <span id="team_money">{$team.credit2}</span></p>
 		<br>
 		<p>当前用户:<span id="my">{$my.nickname}</span> 余额: <span id="my_money">{$my.credit2}</span></p>
 		<br>	
		<p>直属上级:<span id="suser">{$suser.nickname}</span> 余额: <span id="suser_money">{$suser.credit2}</span></p>
 		<br>
 		<p>直属上上级:<span id="ssuser">{$ssuser.nickname}</span>余额: <span id="ssuser_money">{$ssuser.credit2}</span></p>
 		<br>
 		<p>使用分销模板id:{$user.yj_model_id}</p>
 		<br>
 		<button class="click" user_id = "54321">直推下卡</button>
 		<button class="click"  user_id = "54312">二级下卡</button>
 		<button class="click"  user_id = "54132">三级下卡</button>
 	


 	</body>

		<script type="text/javascript" src="__STATIC__/plugins/layui/layui.js"></script>
			<script type="text/javascript" src="__STATIC__/datas/nav.js"></script>	
			<script src="__JS__/index.js"></script>
		    <script src="__JS__/jquery.js"></script>

		    <script type="text/javascript">
		    	$(".click").click(function() {
		    		var user_id = $(this).attr("user_id");
					
					$.ajax({
						type:"post",
						url:"__ADMIN__/bank/ajaxdemo",
						data:{
							user_id:user_id
						},
						dataType:"json",
						success:function(res){
							var str = "股东获得"+res.partner+"元 团队获得"+res.team+"元 直属上级获得"+res.one+"元 上上级获得"+res.two+"元 上上上级获得"+res.three;
							alert(str);
							history.go(0);							
						}
					})					
		    	})
		    </script>
</html>
